#include<stdio.h>
#include<string.h>
int main()
{
	char a[100];
	gets(a);
	int n=0;
	while(n<strlen(a))
	{
		if(a[n]>='0'&&a[n]<='9')
			printf("%c ",a[n]);
		n++;
	}
} 
